Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong unit in Flask new semconv test #2645

Merged
merged 4 commits into from
Jul 1, 2024

Conversation

emdneto
Copy link
Member

@emdneto emdneto commented Jun 28, 2024

Description

Changes duration to be measured in seconds during the test since in stable semconv, the unit changed from ms to s and we are recording in seconds

Probably Fixes #2596

@github-actions github-actions bot requested a review from ocelotl June 28, 2024 03:44
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 28, 2024
Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the only test that has the same duration calculation

Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this is now in seconds, isn't 10 seconds a bit too much for delta?

@emdneto
Copy link
Member Author

emdneto commented Jun 28, 2024

I don't think this is the only test that has the same duration calculation

Do you mean in other instrumentations? If so, I think yes, that's right it might have other tests. For Flask, I believe this is the only one that uses new_semconv. I think the other tests in Flask are correct because they are using the default opt-in (old semconv), and the histogram unit is in ms

@xrmx
Copy link
Contributor

xrmx commented Jun 28, 2024

I don't think this is the only test that has the same duration calculation

Do you mean in other instrumentations? If so, I think yes, that's right. For Flask, I think this is the only one that uses new_semconv. I think the other ones are correct because they are using the default opt-in (old semconv), and the histogram unit is in ms

Missed the setUp doing the patching based on test names 😨 For the next conversion what about using a decorator so at least it's explicit that something is going on?

@emdneto
Copy link
Member Author

emdneto commented Jun 28, 2024

Given this is now in seconds, isn't 10 seconds a bit too much for delta?

Makes sense

…_programmatic.py

Co-authored-by: Riccardo Magliocchetti <[email protected]>
Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@xrmx xrmx changed the title Change duration to seconds in Flask new semconv test Fix wrong unit in Flask new semconv test Jun 28, 2024
@lzchen lzchen merged commit 529178d into open-telemetry:main Jul 1, 2024
365 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flask instrumentation flaky test
5 participants